package com.itheima.test3;

public class Test {


    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.mehtod();
    }
}

class Outer{

    private int i=30;

    public void  mehtod(){
        int i=10;
        long start= System.currentTimeMillis();

        class Inner{

            public void sing(){
                System.out.println("来一首");
                System.out.println(i);
                Outer outer = new Outer();
                System.out.println(outer.i);
            }
        }
        Inner inner = new Inner();
        inner.sing();
        long end= System.currentTimeMillis();
        System.out.println(end-start);
    }
}
